#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>
#include <QtCore/qlogging.h>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    qDebug() << "aaaa" << endl;

    int a=10, b=20;
    int c =  add(a, b);

    qDebug() << "c: "<< c<< endl;
}

MainWindow::~MainWindow()
{
    qDebug() << "c: "<< c<< endl;
    delete ui;
}

int MainWindow::add(int a, int b){
    return a+b;
}

